/// <reference path="./types/log.d.ts">

function _log(string: string): void {
  var str = `< ${string} >`;
  var matchArr = string.match(/[\u4e00-\u9fa5]/gm) || [];
  var strArr = [];
  for (let i = 0; i < str.length + matchArr.length * 0.7; i++) {
    strArr.push('-')
  }
  var strLength = strArr.join('')

  console.log('\n');
  console.log(strLength);
  console.log(str);
  console.log(strLength, '\n');

}

module.exports = _log;


